IPtr< I > Class Template Reference
[Basic Interfaces]
IPtr - Smart pointer template class.
More...
#include <funknown.h>
Detailed Description
template<class I>
class Steinberg::IPtr< I >
IPtr - Smart pointer template class.
- can be used as an I* pointer
- handles refCount of the interface
- Usage example:
IPtr<IPath> path (sharedPath);
if (path)
path->ascend ();
Constructor & Destructor Documentation
IPtr |
( |
I * |
ptr, |
|
|
bool |
addRef = true | |
|
) |
| | [inline] |
IPtr |
( |
const IPtr< I > & |
other |
) |
[inline] |
Member Function Documentation
I * operator= |
( |
I * |
ptr |
) |
[inline] |
IPtr< I > & operator= |
( |
const IPtr< I > & |
ptr |
) |
[inline] |
operator I * |
( |
|
) |
const [inline] |
I* operator-> |
( |
|
) |
const [inline] |
Field Documentation